package org.zls.client.service;

import java.util.ArrayList;

import org.zls.client.Course;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface ServerService extends RemoteService {

	public static final String SERVICE_URI = "HSpot";

	public static class Util {

		public static ServerServiceAsync getInstance() {

			ServerServiceAsync instance = (ServerServiceAsync) GWT
					.create(ServerService.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}
	
	public long getPublicKey();
	public boolean verifyCredentials(long e, long p);
	public ArrayList<String> populateSearchBox();
	public String[][] getTableData(String query, String[] cols);
	public Course getCourseData(int course_id);
}
